/*
 * @Description: 文件描述
 * @Version: 1.0
 * @Author: YueXuanzi
 * @Date: 2024-09-28 20:35:11
 * @LastEditors: YueXuanzi
 * @LastEditTime: 2024-10-08 20:00:34
 * @心得体会: 无
 */
import request from '@/axios'

export function getList() {
    return request({
      url: 'sys/patient/payments',
      method: 'get'
    })
}

export function toRegisterX(data){
  return request({
    url: '/sys/register/register',
    method: 'post',
    data
  })
}

export function getPrescriptionList(){
  return request({
    url: '/sys/patient/prescriptions',
    method: 'get'
  })
}

export function getProjectList(){
  return request({
    url: '/sys/patient/projects',
    method: 'get'
  })
}

export function getPrescriptionDrugs(data){
  return request({
    url: '/sys/patient/prescription/drugs/'+data,
    method: 'get',
  })
}

// 处方缴费
export function payForPrescriptionX(data){
  return request({
    url: '/sys/patient/payForPrescriptionX',
    method: 'post',
    data
  })
}

// 项目缴费
export function payForProjectX(data){
  return request({
    url: '/sys/patient/payForProjectX',
    method: 'post',
    data
  })
}